package com.backend_pay.controller.type;

import com.backend_pay.entity.TypePayout;
import com.backend_pay.service.TypePayoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller //控制层，展示层
public class TypePayoutController {
    @Autowired
    TypePayoutService typePayoutService;

    @GetMapping(value = "/findAllPayoutType")
    @ResponseBody
    public List<TypePayout> findAllType(){
        return typePayoutService.findAllType();
    }
}
